<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>综合练习</title>
    <style>
        body {
            font: 12px "simhei", Arial, Helvetica, sans-serif;
            color: #666;
            background-color: #f5f5f5;
        }
        #d1 {
            width: 198px;
            height: 233px;
            margin-right: 5.19px;
            border-color: #e8e8e8;
            box-sizing: border-box;
            text-align: center;
        }
        #p1{
            margin: 0;
            font-weight: lighter;
            color: #000;
        }
        #p2{
            margin: 6px 0;
            color: #0aa1ed;
            font-weight: bold;
        }
        a{
            width: 100px;
            height: 24px;
            line-height: 24px;
            text-decoration: none;
            background-color: #01A1ED;
            display: block;
            color: whitesmoke;
            /* 块级元素的居中方式 */
            margin: 0 auto;
            border-radius: 2px;
        }
    </style>
</head>
<body>
<div id="d1">
    <img src="dnn.png">
    <p id="p1">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
    <p id="p2">￥4600.00</p>
    <a href="">查看详情</a>
</div>
</body>
</html>